<style>
	.form-group label{
		font-weight:normal !important;
	}
</style>
<form id="add-form" class="form-horizontal col-sm-12" role="form" data-toggle="validator" method="POST" action="">
	{:token()}
	<div class="form-group">
		<div class="alert alert-warning-light no-margin">
			备件信息
		</div>
	</div>
	<div class="tab-content">
		<div role="tabpanel" class="tab-pane fade panel-body active in" id="basic">
			<div class="form-group">
				<div class="col-xs-6 col-sm-5">
					<div class="form-group col-sm-10">
						<span class="text-muted">所属产品:</span>
						<b>{$parts.product_id}</b>
					</div>
				</div>
				<div class="col-xs-6 col-sm-5">
					<div class="form-group col-sm-10">
						<span class="text-muted">备件名称:</span>
						<b>{$parts.name}</b>
					</div>
				</div>
				<div class="col-xs-6 col-sm-5">
					<div class="form-group col-sm-10">
						<span class="text-muted">备件编码:</span>
						<b>{$parts.num}</b>
					</div>
				</div>
				<div class="col-xs-6 col-sm-5">
					<div class="form-group col-sm-10">
						<span class="text-muted">备件单位:</span>
						<b>{$parts.unit}</b>
					</div>
				</div>
				<div class="col-xs-6 col-sm-5">
					<div class="form-group col-sm-10">
						<span class="text-muted">备件库存:</span>
						<b>{$parts.stock}</b>
					</div>
				</div>
				<div class="col-xs-6 col-sm-5">
					<div class="form-group col-sm-10">
						<span class="text-muted">预警库存:</span>
						<b>{$parts.warning_stock}</b>
					</div>
				</div>

				<div class="col-xs-6 col-sm-5">
					<div class="form-group col-sm-10">
						<span class="text-muted">备件描述:</span>
						<b>{$parts.description}</b>
					</div>
				</div>
			</div>

		</div>
	</div>
	<div class="form-group">
		<div class="alert alert-warning-light no-margin">
			出库信息
		</div>
	</div>

	<div class="form-group">
		<div class="col-xs-12 col-sm-6">
			<div class="form-group col-sm-10">
				<label for="c-name">出库编号:</label>
				<input data-rule="required" class="form-control" placeholder="出库编号" name="row[odd_numbers]" value="{$number}" type="text">
			</div>
		</div>

		<div class="col-xs-12 col-sm-6">
			<div class="form-group col-sm-10">
				<label for="c-name">出库时间:</label>
				<input id="c-name" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" placeholder="出库时间" name="row[storage_time]" type="text">
			</div>
		</div>
		<div class="col-xs-12 col-sm-6">
			<div class="form-group col-sm-10">
				<label for="c-name">出库数量:</label>
				<input data-rule="required" class="form-control" placeholder="出库数量" name="row[number]" value="" type="number">
			</div>
		</div>
		<div class="col-xs-12 col-sm-10">
			<div class="form-group col-sm-10">
				<label>备注信息:</label>
				<textarea class="form-control" rows="3" name="row[remarks]" placeholder="备注"></textarea>
			</div>
		</div>

		<div class="col-xs-12 col-sm-10">
			<div class="form-group col-sm-10">
				<label>审批人:</label>
				<div id="c-flow_staff_ids">
					<input type="text" data-rule="required" data-source="qingdongams/common/getStaff" class="form-control selectpage"
						   placeholder="请选择审批人" data-multiple="true" name="row[flow_staff_ids]" data-field="name"
						   data-primary-key="id"/>
				</div>
			</div>
		</div>
	</div>
	<input type="hidden" name="ids" id="ids" value="{$ids}"/>
	<div class="form-group layer-footer">
		<label class="control-label col-xs-12 col-sm-2"></label>
		<div class="col-xs-12 col-sm-8">
			<button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
			<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
		</div>
	</div>
</form>
